.crud-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.header {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border-radius: 5px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.input {
  display: flex;
  gap: 10px;
}
.input span {
  white-space: nowrap;
  margin-left: 10px;
}
.fields_main {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
  height: calc(100vh - 185px);
}
.fields {
  flex: 1 0 0;
}
.fields_select,
.fields_config {
  flex-grow: 1;
  flex-basis: 0;
  border: 1px dashed var(--border-color);
  background-color: var(--bg-primary);
}
.fields_config__content {
  padding: 10px;
}
.fields_content {
  flex-grow: 2;
  flex-basis: 0;
  border-radius: 5px;
  border: 1px dashed var(--border-color);
  background-color: var(--bg-primary);
  transition: 0.3s;
}

.el-collapse-item :deep(.el-collapse-item__title) {
  padding-left: 15px;
}
.el-collapse-item :deep(.el-collapse-item__content) {
  padding-bottom: 10px;
}
.select_content {
  height: 100%;
  padding: 5px;
  position: relative;
}
.el-scrollbar {
  position: relative;
}
.el-scrollbar.empty::after {
  content: "拖动左侧元素字段到此处开始设计";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--el-text-color-placeholder);
}
.field_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}
.field_btn,
.field_item {
  padding: 4px 8px;
  border: 1px dashed var(--border-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.field_btn:hover {
  border-color: var(--el-color-primary);
}
.field_item {
  margin: 5px 0;
  align-items: center;
}
.field_item .el-form-item {
  margin-bottom: 0;
}
.field_item.active {
  border-color: var(--el-color-primary);
}
.field_drag {
  opacity: 0.5;
}
.btn {
  margin-left: auto;
}
.icon_drag {
  cursor: move;
}
